package com.banyuan.HomeWork.ArrayTest;

public class QuestionFour {
    public static void main(String[] args) {
        int i = 235;
        int x = i / 100;
        int y = (i - x * 100) / 10;
        int z = (i - x * 100 - y * 10);
        System.out.println(x + y + z);
    }
}
